﻿<Page 
    x:Class="$safeprojectname$.Views.Home.Index"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" 
    xmlns:magellan="http://xamlforge.com/magellan" 
    Title="Index"
    >
    <StackPanel>
        <TextBox Name="parameterA" />
        <TextBlock Text="+" />
        <TextBox Name="parameterB" />

        <Button Content="Calculate">
            <i:Interaction.Behaviors>
                <magellan:NavigateBehavior Controller="Home" Action="Add">
                    <magellan:NavigateBehavior.Parameters>
                        <magellan:Parameter ParameterName="a" Value="{Binding ElementName=parameterA, Path=Text}" />
                        <magellan:Parameter ParameterName="b" Value="{Binding ElementName=parameterB, Path=Text}" />
                    </magellan:NavigateBehavior.Parameters>
                </magellan:NavigateBehavior>
            </i:Interaction.Behaviors>
        </Button>
    </StackPanel>
</Page>
